<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ page import="java.util.Date" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=11" />
    <title></title>
    <!--框架必需start-->
    <link href="static/qui/libs/css/import_main.css" rel="stylesheet" type="text/css" />
    <link href="static/qui/libs/skins/blue/style.css" rel="stylesheet" type="text/css" id="theme" themeColor="blue" positionTarget="positionContent"  ie6detect="../../sample_html/templete/detect.html"/>
    <link href="skin/style.css" rel="stylesheet" type="text/css" id="skin" skinPath="system/main_html/skin/" />
    <script type="text/javascript" src="static/qui/libs/js/jquery.js"></script>
    <script type="text/javascript" src="static/qui/libs/js/language/cn.js"></script>
    <script type="text/javascript" src="static/qui/libs/js/main.js"></script>
    <!--框架必需end-->

    <!--引入弹窗组件start-->
    <script type="text/javascript" src="static/qui/libs/js/popup/drag.js"></script>
    <script type="text/javascript" src="static/qui/libs/js/popup/dialog.js"></script>
    <!--引入弹窗组件end-->

    <!--引入提示组件start-->
    <script type="text/javascript" src="static/qui/libs/js/popup/toast.js"></script>
    <script type="text/javascript" src="static/qui/libs/js/popup/notice.js"></script>
    <!--引入提示组件end-->

    <!--引入小铃铛start-->
    <link rel="stylesheet" type="text/css" href="static/qui/libs/skins/blue/msgbox.css" />
    <script src="static/qui/libs/js/popup/msgbox.js" type="text/javascript" charset="utf-8"></script>
    <!--引入小铃铛end-->

    <!--引入导航处理start-->
   <%-- <script src="static/js/nav.js?v=<%= new Date().getTime() %>" type="text/javascript" charset="utf-8"></script>--%>
    <!--引入导航处理end-->


    <style>
        body{
            width: 100%!important;
            margin: 0;
            padding:0;

        }
        .hbox_content_right_colorbox span.blue_box{
            background-color: #2DA9FA;
        }
        .hbox_content_right_colorbox span.green_box{
            background-color: #1fc695;
        }
        .hbox_content_right_colorbox span.red_box{
            background-color: #74D6DD;
        }
        #copyrightinfo{
            display: none;
        }
    </style>
</head>

<body>
<div id="mainFrame">
    <!--头部与导航start-->
    <div id="hbox">
        <div class="hbox_content_win">
            <div class="hbox_content clearfloat">
                <div class="hbox_content_left clearfloat" style="margin-left: 12px;width: 400px;font-size: 21px;line-height: 80px;">
                    职师学院新生寝室大赛信息网后台管理
                </div>
                <div class="hbox_content_right clearfloat" >
                    <ul style="float: right;" class="clearfloat ">
                        <li>当前登录用户：<shiro:principal/> </li>
                        <li><span id="editPassword" class="icon_exit" style="background-position: 0 50%;">修改密码</span></li>
                        <li><span onclick="exitHandler()"  id="logoutBtn" class="icon_exit" style="background-position: 0 50%;">退出系统</span></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="table_win">
        <table width="100%" cellpadding="0" cellspacing="0" class="table_border0">
            <tr>
                <!--左侧区域start-->
                <td id="hideCon" class="ver01 ali01">
                    <div id="lbox">
                        <div id="lbox_topcenter">
                            <div class="LeftNav_title">
                                <i></i>
                                <span style="width: 85px;">菜单导航</span>
                                <b></b>
                            </div>
                        </div>
                        <div id="lbox_middlecenter" class="">
                            <div id="bs_left" class="lbox_middlecenter_content">
                                <!--左侧导航内容-->
                                <!--收缩导航-->
                                <div class="LeftNav_win">
                                    <div class="stair_win" id="stair_win">
                                        <img src="" alt="" />
                                    </div>
                                </div>

                            </div>
                        </div>
                        <div id="lbox_bottomcenter">

                        </div>
                    </div>
                </td>
                <!--左侧区域end-->

                <!--右侧区域start-->
                <td class="ali01 ver01" width="100%">
                    <div id="rbox">
                        <div id="rbox_topcenter">
                            <div class="rbox_topcenter">
                                <span></span>
                            </div>
                        </div>
                        <div id="rbox_middlecenter">
                            <div id="bs_right">
                                <IFRAME style="box-sizing: border-box; background: white;" height="100%" width="100%" frameBorder=0 id=frmright name=frmright src="user.jsp" allowTransparency="true"></IFRAME>
                            </div>
                        </div>
                        <div id="rbox_bottomcenter">

                        </div>
                    </div>
                    <!--<div class="tip_allcontent_win">
                        <div class="tip_allcontent">
                            <div class="all_title clearfloat">
                                <span>消息</span>
                                <em class="all_close"></em>
                            </div>
                            <div class="all_content">
                                <ul>
                                    <li><a href="javascript:;">待办</a></li>
                                    <li><a href="javascript:;">通知</a></li>
                                    <li><a href="javascript:;">部门</a></li>
                                </ul>
                            </div>
                        </div>
                    </div>-->
                </td>
                <!--右侧区域end-->
            </tr>
        </table>
    </div>
    <div id="fbox"></div>

</div>
<script src="static/qui/libs/js/nav/menuNav.js"></script>
<script type="text/javascript">
    var setting = {
        data: {
            simpleData: {
                idKey: "id",
                pIdKey: "parentId",
                enable: true
            },
            key: {
                children: "children"
            },
          /* leftIcon:true*/
        }
    };

    var menuData=[
       /* { "id":"1", "parentId":"0", "name":"能源管理体系", "isParent": "true","backgroundPosition":"0px -80px","img":"./skin/topIcons/icon01.png"},*/
        { "id":"102", "parentId":"1","name":"用户管理", "url":"/link?url=user.jsp&index=0","target":"frmright","icon": "./skin/nav_icon_bg.png","backgroundPosition":"0px -128px"},
        { "id":"103", "parentId":"1","name":"作品管理", "url":"/link?url=rootManage.jsp&audit=1&index=1","target":"frmright","icon": "./skin/nav_icon_bg.png","backgroundPosition":"0px -128px"},
        { "id":"103", "parentId":"1","name":"作品审核", "url":"/link?url=rootManage.jsp&audit=0&index=2","target":"frmright","icon": "./skin/nav_icon_bg.png","backgroundPosition":"0px -128px"},
        { "id":"104", "parentId":"1","name":"奖项设置", "url":"/link?url=admin/xsxt/prizeSet.jsp&index=3","target":"frmright","icon": "./skin/nav_icon_bg.png","backgroundPosition":"0px -128px"},
        { "id":"105", "parentId":"1","name":"赛事管理", "url":"/link?url=admin/xsxt/thisRace.jsp&index=4","target":"frmright","icon": "./skin/nav_icon_bg.png","backgroundPosition":"0px -128px"},
        { "id":"106", "parentId":"1","name":"学生管理", "url":"/link?url=/admin/xsxt/student.jsp&index=4","target":"frmright","icon": "./skin/nav_icon_bg.png","backgroundPosition":"0px -128px"},
        { "id":"107", "parentId":"1","name":"宿舍管理", "url":"/link?url=/admin/xsxt/dorm.jsp&index=4","target":"frmright","icon": "./skin/nav_icon_bg.png","backgroundPosition":"0px -128px"},
        /*   { "id":"104", "parentId":"1","name":"测试", "url":"/link?url=admin/xsxt/test.jsp","target":"frmright","icon": "./skin/nav_icon_bg.png","backgroundPosition":"0px -128px"}*/
    ];

    initMenuNav(menuData,setting);

    var data = [
        { "news": "请假正在审批中" },
        { "news": "请各位周五前提交周报" },
        { "news": "QUICKUI新版本上线啦" }
    ];
    tip_construction(data, ".right_tip", 10000); //数据，div的class或者id，定时器时间
    function exitHandler(){
        top.Dialog.confirm("确定要退出系统吗",function(){
            window.location.href = "/logout";
        });
    }
    $("#editPassword").click(function () {
        var diag = new top.Dialog();
        diag.Title = "修改密码";
        diag.URL = "/editPasswordForm.jsp?flag=edit";
        diag.Width=600;
        diag.Height=200;
        diag.OkButtonText = "保存";
        diag.OKEvent = function() {
            diag.innerFrame.contentWindow.submitHandler(0);
        };
        diag.show();
    });
</script>
</body>
<!--窗口任务栏区域start-->
<div id="dialogTask" class="dialogTaskBg" style="display:none;"></div>
<!--窗口任务栏区域end-->

</html>
